package com.example.bootdemo2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author lml
 * @since 2022-12-25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value ="id", type = IdType.AUTO)
    private Integer id;
    @TableField("userName")
    private String username;

    @TableField("passWord")
    private String password;

    private String phone;

    @TableField("realName")
    private String realname;

    private String sex;

    private String address;

    private String email;
    @TableLogic
    private Integer status;

}
